<template>
  <div>
    <Button type="primary" @click="handleOpen">打开弹窗 </Button>
    <FormModal :modalVisibleProp.sync="modalVisibleProp">
      <template slot="customForm">
        <FormCustom />
      </template>
    </FormModal>
  </div>
</template>

<script>
import FormModal from "./FormModal.vue";
import FormCustom from "./FormCustom.vue";
export default {
  name: "",
  components: {
    FormModal,
    FormCustom,
  },
  data() {
    return {
      modalVisibleProp: false,
    };
  },
  methods: {
    // 新增
    handleOpen() {
      this.modalVisibleProp = true;
    },
  },
};
</script>
